package com.four.hospital.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.four.hospital.entity.Hospital;
import com.four.hospital.vo.HospitalVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:luojie
 * @Date: 2022/01/05/18:39
 * @Description
 */
public interface HospitalDao {
    /**
     * 医院分页模糊查
     * @param hospitalPage
     * @param vo
     * @return
     */
    IPage<Hospital> hospitalList(Page<Hospital> hospitalPage, @Param("vo") HospitalVo vo);

    /**
     * 输入医院名称查询医院信息
     * @param hosName
     * @return
     */
    List<Hospital> getHospitalByName(@Param("hosName") String hosName);

    /**
     * 根据地址id查询所有的医院
     * @param areaId
     * @return
     */
    List<Hospital> getHospitalAll(@Param("areaId") Integer areaId);
}
